var events = require("events");
var util = require("util");
var Emitter = events.EventEmitter;
var Radio=function(station){
    Emitter.call(this);
    var fm = this;
    setTimeout(function(){
        fm.emit("open",station);
    },0);
    setTimeout(function(){
        fm.emit("close",station);
    },5000);
}

util.inherits(Radio,Emitter);

module.exports=Radio;